package bsplib.q3bsp;

import flash.utils.ByteArray;

class Q3Node
{
    public static inline var DIR_INDEX : UInt = 3;
    
    public var plane : Int;
    public var child0 : Int;
    public var child1 : Int;
    public var mins : Q3Vec3i;
    public var maxs : Q3Vec3i;
    
    public function new( data : ByteArray )
    {
        plane = data.readInt();
        child0 = data.readInt();
        child1 = data.readInt();
        mins = Q3Vec3i.FromByteArray(data);
        maxs = Q3Vec3i.FromByteArray(data);
    }

}